package com.gobang;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 五子棋在线对战平台主启动类
 * 
 * @author System
 * @version 1.0.0
 */
@SpringBootApplication
@EnableScheduling
@MapperScan("com.gobang.mapper")
public class GobangApplication {
    
    private static final Logger logger = LoggerFactory.getLogger(GobangApplication.class);

    public static void main(String[] args) {
        logger.info("=== 五子棋在线对战平台启动中... ===");
        
        try {
            SpringApplication.run(GobangApplication.class, args);
            logger.info("=== 五子棋在线对战平台启动成功! ===");
        } catch (Exception e) {
            logger.error("=== 五子棋在线对战平台启动失败! ===", e);
            System.exit(1);
        }
    }
} 